class ProblemCaseList {
  String? id;
  String? problemId;
  String? caseName;
  String? caseIntroduction;
  String? caseUrl;
  String? remark;
  String? isValid;
  String? tenantId;
  String? createBy;
  List<int>? createTime;
  String? updateBy;
  String? updateTime;

  ProblemCaseList({
    this.id,
    this.problemId,
    this.caseName,
    this.caseIntroduction,
    this.caseUrl,
    this.remark,
    this.isValid,
    this.tenantId,
    this.createBy,
    this.createTime,
    this.updateBy,
    this.updateTime,
  });

  factory ProblemCaseList.fromJson(Map<String, dynamic> json) {
    return ProblemCaseList(
      id: json['id'] as String?,
      problemId: json['problemId'] as String?,
      caseName: json['caseName'] as String?,
      caseIntroduction: json['caseIntroduction'] as String?,
      caseUrl: json['caseUrl'] as String?,
      remark: json['remark'] as String?,
      isValid: json['isValid'] as String?,
      tenantId: json['tenantId'] as String?,
      createBy: json['createBy'] as String?,
      createTime: (json['createTime'] as List).cast(),
      updateBy: json['updateBy'] as String?,
      updateTime: json['updateTime'] as String?,
    );
  }

  Map<String, dynamic> toJson() => {
        'id': id,
        'problemId': problemId,
        'caseName': caseName,
        'caseIntroduction': caseIntroduction,
        'caseUrl': caseUrl,
        'remark': remark,
        'isValid': isValid,
        'tenantId': tenantId,
        'createBy': createBy,
        'createTime': createTime,
        'updateBy': updateBy,
        'updateTime': updateTime,
      };
}
